using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityShippingCompaniesCreateExtend
{
		public static ShippingCompanies ToCreateEntity(this RequestShippingCompaniesDto dto)
		{
			return new ShippingCompanies
			{
				ScName = dto.name,
				ScPhone = dto.phone,
				ScWebsite = dto.website,
			};
		}
	}
}
